﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="InvoiceTypeForm.ascx.cs"
    Inherits="SalesManagement.Controls.List.InvoiceTypeForm" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="winDetails" runat="server" Title="Chi tiết Loại hình hóa đơn" Frame="false"
    Hidden="true" CenterOnLoad="true" Width="400" Height="100" Padding="5" Resizable="false"
    Closable="true" Layout="Fit" AutoHeight="true" Icon="Group">
    <Items>
        <ext:FormPanel ID="FormPanel1" runat="server" Split="true" Frame="false" Header="false"
            LabelWidth="80" AutoHeight="true" Border="false" MonitorValid="true" BodyStyle="background-color:transparent;"
            Layout="row" AutoScroll="true">
            <Items>
                <ext:Hidden ID="hdfInvoiceTypeId" runat="server" />
                <ext:TextField ID="txtInvoiceTypeName" runat="server" FieldLabel="Tên" AllowBlank="false"
                    AnchorHorizontal="100%" BlankText="Không để trống" />
                <ext:TextArea ID="txtDescription" runat="server" FieldLabel="Mô tả" AllowBlank="true"
                    AnchorHorizontal="100%" />
                <ext:CheckboxGroup ID="CheckboxGroup1" runat="server" FieldLabel="Kích hoạt">
                    <Items>
                        <ext:Checkbox ID="ckbIsActive" runat="server" Checked="true" />
                    </Items>
                </ext:CheckboxGroup>
            </Items>
            <Listeners>
                <ClientValidation Handler="#{btnSave}.setDisabled(!valid);" />
            </Listeners>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="btnSave" runat="server" Text="Lưu" Icon="Disk">
            <DirectEvents>
                <Click OnEvent="btnSave_Click" />
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="btnCancel" runat="server" Text="Hủy bỏ" Icon="Cancel">
            <Listeners>
                <Click Handler="#{winDetails}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
